<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('counselling/index')}">咨询列表</a></li>
			<li class="active"><a>回复</a></li>
		</ul>
		<br>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('counselling/reply')}">
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>咨询标题</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$row.title}" readonly>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>咨询内容</label>
				<div class="col-md-6 col-sm-10">
					<textarea class="form-control" readonly>{$row.content}</textarea>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>咨询用户</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" value="{$row.user.user_nickname}" readonly>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>图片</label>
				<div class="col-md-6 col-sm-10">
					<foreach name="row.images" item="img">
						<a href="javascript:imagePreviewDialog('{$img}');">
                            <img src="{$img}" height="200px">
                        </a>
					</foreach>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>回复</label>
				<div class="col-md-6 col-sm-10">
					<textarea class="form-control" name="reply">{$row.reply}</textarea>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="id" value="{$row.id}">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>